<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;

include_once "function_sys_debug.php";

$type = $_POST['sub_type'];
if ($type == "MenuStart"){
	$status = $_POST['status'];

	if ($status == '0')
		$op = "RUN";
	if ($status == '1')
		$op = "CLOSE";

	ApplySysDebugRemote($op);
}
if ($type == "AutoStart"){
	$in_array['AutoStart'] = $_POST['radio'];

	$rd = new CRemoteDebug();
	$rd_ret = $rd->EditItemByNumber(0, $in_array);
	$rd -> Apply();
}

echo("<meta http-equiv='refresh'content=0;URL='sys_debug_remote.php'>");
?>
